-
Notifications
You must be signed in to change notification settings - Fork 37
Remove multisig wrapper #546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR removes the MultisigWrapper class that acted as an intermediary layer around the MultisigTransactionsFactory from the SDK. The wrapper is replaced with direct usage of the MultisigController from the SDK, simplifying the architecture and eliminating code duplication.
- Removed the entire
multisig.pyfile containing theMultisigWrapperclass - Updated
cli_multisig.pyto useMultisigControllerdirectly instead of the wrapper - Renamed a function in
cli_shared.pyfrom_get_address_hrptoget_address_hrp_with_fallbackand made it public
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| multiversx_sdk_cli/multisig.py | Complete removal of the MultisigWrapper class and its methods |
| multiversx_sdk_cli/cli_multisig.py | Refactored to use MultisigController directly, updated method calls and parameter handling |
| multiversx_sdk_cli/cli_shared.py | Renamed function and made it public for broader usage |
| multiversx_sdk_cli/cli_governance.py | Updated to use the renamed function and fixed getattr usage |
| multiversx_sdk_cli/cli_get.py | Updated function calls to match new naming |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| address = Address.new_from_bech32(args.address) | ||
| else: | ||
| hrp = cli_shared._get_address_hrp(args) | ||
| hrp = cli_shared.get_address_hrp(args) |
Copilot
AI
Sep 24, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function call should be get_address_hrp_with_fallback(args) to match the renamed function in cli_shared.py.
| address = Address.new_from_bech32(args.address) | ||
| else: | ||
| hrp = cli_shared._get_address_hrp(args) | ||
| hrp = cli_shared.get_address_hrp(args) |
Copilot
AI
Sep 24, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function call should be get_address_hrp_with_fallback(args) to match the renamed function in cli_shared.py.
| address = Address.new_from_bech32(args.address) | ||
| else: | ||
| hrp = cli_shared._get_address_hrp(args) | ||
| hrp = cli_shared.get_address_hrp(args) |
Copilot
AI
Sep 24, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function call should be get_address_hrp_with_fallback(args) to match the renamed function in cli_shared.py.
| address = Address.new_from_bech32(args.address) | ||
| else: | ||
| hrp = cli_shared._get_address_hrp(args) | ||
| hrp = cli_shared.get_address_hrp(args) |
Copilot
AI
Sep 24, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function call should be get_address_hrp_with_fallback(args) to match the renamed function in cli_shared.py.
No description provided.